<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateFlowDoChildrensTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('flow_do_childrens', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('name')->nullable()->comment('审核人姓名');
			$table->integer('flowDoId')->unsigned()->comment('流程id');
			$table->string('flowDoName')->nullable()->comment('审核人姓名');
			$table->date('eDate')->nullable()->comment('到期时间');
			$table->integer('rank')->unsigned()->comment('层级');
			$table->integer('checkId')->nullable()->comment('审核人');
			$table->string('checkName')->nullable()->comment('审核人姓名');
			$table->integer('flowDoResultId')->unsigned()->comment('执行结果，0，1，2，3');
			$table->integer('resultId')->unsigned()->comment('执行结果，0，1，2，3');
			$table->string('result')->nullable()->comment('步骤结果');
			$table->string('info')->nullable()->comment('备注');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('flow_do_childrens');
	}

}
